﻿@model IEnumerable<TO3.Models.RankingsViewModel>

@{
    ViewBag.Title = "Rankings";
}

<h2>Rankings - @ViewBag.TournamentName</h2>

<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Wins)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TotalCP)
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Wins)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TotalCP)
        </td>
    </tr>
}
</table>
